package day02;

public class Operation1{
	public static void main(String[]args){
		//+
		int i = 1+1;
		int a = 10;
		int b = 20;
		int c = a + b;
		int d;
		d = a + b;
		
		//-
		i = 1-1;
		c = a - b;
		
		//*
		i = 1*1;
		c = a*b;
		
		///
		i = 4/2;
		c = a/b;
		System.out.println("4/2="+i);
		System.out.println("a="+a+";b="+b);
		System.out.println("a/b="+c);
		System.out.println("3/2="+3/2);
		double d1 = a*1.0/b;
		System.out.println("d1="+d1);
		
		//%
		i = 3%2;
		System.out.println("3%2="+i);
		System.out.println("2%3="+2%3);
		System.out.println("100%3="+100%3);
		
		//=
		int i1 = 10;
		i1 = i1 + 2;
		i1 += 2;//i1 = i1+2;
		i1 -= 2;//i1 = i1 - 2;
		
		//=====================
		byte b1 = 10;
		byte b2 = 20;
		byte b3 = 10 + 20;
		System.out.println(b3);
		//b3 = b1 + b2;
		//b1 = b1 + 1;
		b1=127;
		b1 += 1;
		System.out.println(b1);
	}
}